package com.foryou.wechat.service;

import com.foryou.wechat.model.Query;
import com.foryou.wechat.model.dto.PlaceDTO;
import com.foryou.wechat.utils.Response;

import java.util.List;
import java.util.Map;

/**
 * <h1>场地信息接口汇总</h1>
 * Created by Lee.
 */
public interface PlaceService {

    /**
     * <h2>发布场地信息</h2>
     * @param placeDTO
     * @return
     */
    Response addPlace(PlaceDTO placeDTO);

    /**
     * <h2>得到一个场地信息详情</h2>
     * @param placeId
     * @return
     */
    Response getPlaceDetail(Long placeId);

    /**
     * <h2>收藏该场地</h2>
     * @param placeId
     * @return
     */
    Response collectPlace(Long placeId);

    /**
     * <h2>取消收藏该场地</h2>
     * @param placeId
     * @return
     */
    Response cancelPlace(Long placeId);

    /**
     * <h2>打卡该场地</h2>
     * @param placeId
     * @return
     */
    Response clockPlace(Long placeId);

    /**
     * <h2>评论该场地信息</h2>
     * @param placeId
     * @param content
     * @return
     */
    Response commentPlace(Long placeId, String content);

    /**
     * <h2>根据参数查询场地列表信息</h2>
     *
     * @param query
     * @return
     */
    Response getPlaceList(Query query);

    /**
     * <h2>查询收藏的场地集合信息</h2>
     * @param start
     * @param userId
     * @return
     */
    Response queryCollectPlaceList(int start, Long userId);
}
